package com.ahy231.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ahy231
 * @date 2021/7/23 14:18
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("`user`")
@ApiModel(value = "user 实体")
public class User implements Serializable {

    private static final long serialVersionUID = 8166285734358482449L;

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long userId;

    @TableField("username")
    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("电子邮箱")
    private String email;

    @ApiModelProperty("性别（0/未知、1/男、2/女）")
    private Integer sex;

    @ApiModelProperty("真实姓名")
    private String trueName;

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("openId")
    private String openId;

    @ApiModelProperty("头像")
    private String imgUrl;
}
